import Instance from '@/utils/http.ts';
export function useUserPermissionAPI(){
    return Instance({
        url:'/user-permission/getLoginUserPermissionList',
        method:'GET'
    })
}


export function updateUserPermissionAPI(data:any){
    return Instance({
        url:'/user-permission/updateUserPermission',
        method:'PUT',
        data:data
    })
}

export function addUserPermissionAPI(data:any){
    return Instance({
        url:'/user-permission/saveUserPermission',
        method:'POST',
        data:data
    })
}